#ifndef __DEVICEBTJ_HANDLER_H_
#define __DEVICEBTJ_HANDLER_H_
#include "sys_types.h"
#include "DeviceBtj.h"// for warning messge change 
#define HID_REPORT_SIZE 10
#define SEND_BUFFER_CNT  6
#define SEND_BUFFER_SIZE  8
#define DATA_LENGTH    8
#define LINK_KEY_SAVE_BUF_LEN 23
extern u_int32 sys_flag;
extern u_int8 bd_addr[6];
extern u_int8 bt_tx_buff[SEND_BUFFER_CNT][SEND_BUFFER_SIZE],tx_buff_len[SEND_BUFFER_CNT];
extern u_int8 tx_buff_head,tx_buff_tail,tx_buff_count;
extern u_int8 backup_buffer[17],rfcomm_dis_fail,l2cap_dislink_fail;
extern u_int8 stan_key[8];
extern u_int8 uart_cnt_index,enter_pair_count;
extern volatile u_int8 flag_system_active,b_gpio_intr;
extern u_int8 pin_code_req,enter_sleep_flag;
extern DEV_MEM_ADDR pair_device_addr;
extern DEVICEBTJ_ADAPTER_P bt_adapter;
extern u_int16 timer_tick1, timer_tick2,timer_tick3,key_status,enter_pair_count1,led_count;
extern u_int8 led_on_off;
extern volatile u_int8 b_26M_colsed;
extern volatile u_int8 auto_connect_status;
extern u_int8 linkkey_buff[LINK_KEY_SAVE_BUF_LEN];
extern u_int8 hid_mode_flag,bluetooth_ssp_mode;
extern u_int8 enter_sniff_flag;
extern volatile u_int16 lowpower_cnt;
extern u_int8 uart_open;
extern u_int8 vol_key_flag,key_lock,first_power_on;
extern u_int8 key_release_cnt;
void SYS_Host_Initialise(void);
void disconnect_ind(void);// for warning messge change
void delay_ms(unsigned int tt);
#endif
